package impl

import (
	"context"
	"fmt"

	auth "kitexz/protocol/grpcx/kitex_gen/auth"
)

// LoginServiceImpl implements the last service interface defined in the IDL.
type LoginServiceImpl struct{}

func (s *LoginServiceImpl) Login(ctx context.Context, req *auth.Request) (res *auth.Response, err error) {
	fmt.Println("Login", req)
	return &auth.Response{
		Message: req.Message,
	}, nil
}

type AuthServiceImpl struct{}

func (s *AuthServiceImpl) Auth(ctx context.Context, req *auth.Request) (resp *auth.Response, err error) {
	fmt.Println("Auth", req)
	return &auth.Response{
		Message: req.Message,
	}, nil
}
